<?php

require_once 'configs/setup.php';
require_once 'business/database_handler.php';
require_once 'business/query_catalog.php';
require_once 'configs/databaseconf.php';

//QueryCatalog::addNewUser('hugo', '12345678', '1-8', '11', 'Hugo Pereira Godoy', 'hpg@rc.unesp.br', '1935269388', 'hugo.p.godoy', '1');


try {
    QueryCatalog::addNewUser('hugo', '12345678', '1-8', '11', 'Hugo Pereira Godoy', 'hpg@rc.unesp.br', '3526', '1');
} catch (PDOException $pdoex) {
    trigger_error($pdoex->getMessage());
}

$users = QueryCatalog::GetAllLogins();
var_export($users);



$me = QueryCatalog::GetUser('admin');
$info_user_loged = $me['nome'];
echo $info_user_loged;



?>
